/**
 * @author gao
 * @date 2025/7/14 20:11
 */

public class Test {
    public static void main(String[] args) {
        int[] arr = {4, 2, 6, 1, 3, 5, 15, 7, 16, 14};
        RBTree rbTree = new RBTree();
        for (int i : arr) {
            rbTree.insert(i);
        }
        System.out.println(rbTree.isRBTree());
    }
}